Moving the game JS to a separate JS file