more emscripten support
even more emscripten support