basic js code and phaser lib