Preliminary support for emscripten.