       return
   req.open 'GET', url, true
   req.send()
-  console.log 'req send'
   return
 
 loadJSON '{{ site.practices_url }}?date=' + new Date().getTime()

), 500

cb = (r) ->
	console.log 'cb return'
	boxes = []
	divOn = '<div class="on"></div>'
	divOff = '<div class="off"></div>'

		dayNumber = new Date(p.date).getDay()
		diff = Math.floor (today-practice)/ milliseconds
		if diff < 16 then boxes[diff] = 1
	console.log 'boxes: ', boxes
	for i in [14..0] by -1
		document.querySelector('.practices').innerHTML += if boxes[i] then divOn else divOff
	return

# XMLHttpRequest.coffee
loadJSON = (url) ->
  req = new XMLHttpRequest()
  req.addEventListener 'readystatechange', ->
    if req.readyState is 4 # ReadyState Complete
