beginnings of emscripten support