diff --git a/Makefile b/Makefile
index a6ba1ee8..9e6d1216 100644
--- a/Makefile
+++ b/Makefile
@@ -429,9 +429,11 @@ define WASM_RELEASE
rm -rf $(RELEASE)/$(WASM)
mkdir -p $(RELEASE)/$(WASM)
cp $(RUNTIME_FFI)/$(WASM_BUILD)/$(BUILD)/$(WASM_MODULE).wasm \
- $(RUNTIME_FFI)/$(WASM_BUILD)/$(BUILD)/$(WASM_MODULE).js \
- $(RUNTIME_FFI)/$(WASM_BUILD)/$(BUILD)/$(WASM_MODULE).d.ts \
$(RELEASE)/$(WASM)
+ cp $(RUNTIME_FFI)/$(WASM_BUILD)/$(BUILD)/$(WASM_MODULE).d.ts \
+ $(RELEASE)/$(WASM)
+ cp $(RUNTIME_FFI)/$(WASM_BUILD)/$(BUILD)/$(WASM_MODULE).js \
+ $(RELEASE)/$(WASM)/$(WASM_MODULE).mjs
cd $(RELEASE)/$(WASM) && \
rm -f $(DOTLOTTIE_PLAYER).$(WASM).tar.gz && \
tar zcf $(DOTLOTTIE_PLAYER).$(WASM).tar.gz *
diff --git a/web-example.html b/web-example.html
index dfb15215..4b74b83c 100644
--- a/web-example.html
+++ b/web-example.html
@@ -10,12 +10,12 @@