Simple JS Dom-based game engine