(function() { var game = new Phaser.Game(this, 'game', 800, 600, init, create); function init() { // body... } function create() { } })();