JavaScript in the Browser: DOM Manipulation and Events - Creating a Game Initialization Function