Made HTML5/Emscripten backend work.