HTML 5 javascript game engine that handles 2d sprites