 #=require d3
 $ ->
+
+  metricMeter = {}
 
   class MetricMeter
     

      $("#" + metric + " " + ".score").text(parseFloat(data).toFixed(2))
    )

  load_scores = (repository) ->
    # TODO: access metric meter objcets dynamically
    # to update score
    console.log repository.accessibility

  load_scores(gon.repository)


  $(".metric-meter").each () ->
    metric = @id
    metricMeter[metric] = new MetricMeter metric

  $(".score").bind "click", (event) =>
    metric = $(event.target).parent()[0].id
