       @y = 0
       @parent = null
       @children = []
-      @link = 'testing'
-      @text = 'asdfasdf'
+      @notes = ''
+      @title = ''
       @on = false
       nodes.push @
 


  nodes = JSON.parse localStorage.getItem 'nodes' or '[]'
  links = JSON.parse localStorage.getItem 'links' or '[]'
  nodes = []
  links = []

  sx = null
  sy = null
  lastClicked = null
  cx = 0
  cy = 0


      cx += dx
      cy += dy

  saving = null
  save = ->
    if not saving
      setTimeout ->
        localStorage.setItem 'nodes', JSON.stringify nodes
        saving = false
      , 1000

  $('#title').on 'input propertychange', ->
    if selected
      selected.title = $(this).val()
      save()

  $('#notes').on 'input propertychange', ->
    if selected
      selected.notes = $(this).val()
      save()

  if nodes.length is 0
    head = new Node()
    head.x = w / 2
