Compile for JavaScript by emscripten