     Meteor.call 'unfavoriteStory', @_id, (err) ->
       if err
         alert err
+



  "keydown": (d) ->
    if d.keyCode is 38  # up
      goToY(Session.get("currentY") - 1)
    else if d.keyCode is 40  # down
      goToY(Session.get("currentY") + 1)
    else if d.keyCode is 39 # right
      return
    else if d.keyCode is 37 # right
      return

Template.story.helpers
  horizontalExists: ->

    path.pop()
    path.pop()
    # window.history.pushState({}, '', path.join("/"))

Template.story.events =
  "click .link": (d) ->
    srcE = if d.srcElement then d.srcElement else d.target
