Phase.js javascript game