I'll see what I can do, but I don't know why that is happening.
I had trouble with this in godot as well, you have to zip up the .html, .wasm, .js and .pck file together, and rename the html file to index.html. Hope this helps.