Update jPGE.js

added some checkers