Fix bug preventing the game from running in Firefox