make it possible to compile it with emscripten