2D rendering for JavaScript Games