emscripten proof of concept