updated jgame.js