Update emscripten-generated code

asm.js syntax changed slightly, which broke it.
Add an option "noloop=1" for not running the main loop

It hurts performance too much on my machine to always keep the game
running...