added javascript to the game js file