diff --git a/templates/emscripten/output.js b/templates/emscripten/output.js
new file mode 100644
index 000000000..f452049f3
--- /dev/null
+++ b/templates/emscripten/output.js
@@ -0,0 +1,3 @@
+::SOURCE_FILE::
+::if embeddedLibraries::::foreach (embeddedLibraries)::
+::__current__::::end::::end::
\ No newline at end of file
diff --git a/templates/emscripten/template/index.html b/templates/emscripten/template/index.html
index 747566187..57bbeea72 100644
--- a/templates/emscripten/template/index.html
+++ b/templates/emscripten/template/index.html
@@ -65,7 +65,6 @@
}, true);::end::::end::
- ::if DEBUG::::end::