Added dom.js helper module
Added game.js module for switching game states and uncommented console.log messages in loader.js