 
     do ->
       $('.page-button.next-page a').bindAjaxHandler self.nextPageHandler
-      $w.scroll self.loadNextPage
+      $w.on 'scroll', self.loadNextPage

    do ->
      $d.on 'click', '.media-grid.photos a', self.toggle
      $d.on 'click', '.modal.media-panel .close', self.close
      $d.keydown self.action
      $w.resize self.resize

  class Likes
    self = this

      $('.likes-button a').bindAjaxHandler self.likesStatusHandler
      $('.likes-button.like a').bindAjaxHandler self.likeHandler
      $('.likes-button.unlike a').bindAjaxHandler self.unlikeHandler
      $d.on 'keydown', self.action

  class Comments
    self = this
