A small javascript game engine for the canvas tag