Tiled map engine using Rails, Javascript, and HTML5