   # Updates sort direction icons
   # @param type [String] (name,brating)
   # @param event [jQueryEvent]
-  updateTableHeaders: (type,event) ->
+  updateTableHeaders: (type,event) =>
     $("#results-table thead tr th").removeClass "headerSortUp"
     $("#results-table thead tr th").removeClass "headerSortDown"
     if sortDirection is -1

  $(document).foundation()
  ko.applyBindings new ViewModel()
  return

class ViewModel
  constructor: ->

      i++
    return

  saveToCache: (type,key,data) ->
    return

  goToSearch: ->
    str = encodeURIComponent($("#search").val())
    location.hash = "search/" + str
