game prototype in javascript using phaser framework