Trying emscripten optimizations