Phaser Game using require.js and better encapsulation