Fixed some IDE Javascript warnings in game model