A simple 2d game engine written in Javascript