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.