Emscripten prep script (untested)