A basic javascript game engine since crafty made me too upset