Added game initialization code for emscripten environment