Basic implementation of emscripten