clean up some asm.js code in emscripten.py