First attempt at emscripten