Fixed emscripten game initialization code