I see what you were going for. I could not get emscripten to compile my game at all so I don't blame you for struggling with that.
Yep, complete pain in the butt I wanted to spend time fixing the collision and adding the enemies as all the code was somewhat in place, just had to create and setup the characters ... however Emscripten said Nope! lol