 			e = eventMap[ grid.created_at.format() ]
 			commitsLength = if e.payload.commits then e.payload.commits.length else 0
 			grid.commitsLength = commitsLength
-	paintGrids i % 7, Math.floor(i / 7), grid
+		paintGrids i % 7, Math.floor(i / 7), grid
 
 eventsHandler = (events)->
 	events.forEach (e)->

	date1.getYear() is date2.getYear() and date1.getMonth() is date2.getMonth() and date1.getDate() is date2.getDate()

paintGrids = (row,col, model)->
	square = paper.rect(col * 11, row * 11, 10, 10)
	square.attr("fill", "#ccc")
	square.attr("stroke-opacity", "0")

	date.setDate( today.getDate() - i )
	model.unshift { created_at: date, commitsLength: 0}

urls.forEach (url)->
	$.get( url )
		.done eventsHandler

paper = Raphael(10, 10, 600, 100)