       .data(force.nodes())
       .enter().append("g")
       .attr("class", "node")
-      .attr("data-label", (d) ->
-        d.label)
+      .attr("data-label", (d) -> d.label)
 
     embedNodeInfo = (node) ->
-      info_list = $('<ul />',
-        id: 'node_info')
-      template = null
+      info_list = $('<ul />', id: 'node_info')
       payload =
         node_url: node_url
         node: node

        d.pos_offset_b = 1 if (rand % 2) == 0

    tick = ->
      node.attr("transform", (d) ->
        if d.is_center
          d.x = width/2
          d.y = height/2
        "translate(#{d.x},#{d.y})")
      path.attr("d", (d) ->
        dx = d.target.x - d.source.x
        dy = d.target.y - d.source.y
        dr = Math.sqrt(dx*dx + dy*dy)*2

          "M#{d.source.x},#{d.source.y-0.6}" +
          "A-#{d.arc_offset_a},-#{d.arc_offset_b} 0 " +
          "#{d.pos_offset_a},#{d.pos_offset_b} #{d.target.x-4},#{d.target.y}"

    force.on('tick', tick)

  drawGraph(nodes, edgesForMode(mode))
