optimize the emscripten build by using asm.js