       when "brating" then self.sortByBRating()
     return
   # Updates sort direction icons
-  # type [String] (name,brating)
-  # event [jQueryEvent]
+  # @param type [String] (name,brating)
+  # @param event [jQueryEvent]
   self.updateTableHeaders = (type,event) ->
     $("#results-table thead tr th").removeClass "headerSortUp"
     $("#results-table thead tr th").removeClass "headerSortDown"

    str = encodeURIComponent($("#search").val())
    location.hash = "search/" + str
    return

  self.goToGame = (object) ->
    location.hash = "game/" + object.id
    return

    return

  # Returns the list of ids of the boardgames that match the search string
  # @param data [Object]
  self.extractIdsFromSearch = (data) ->
    console.log data
    if data.query.results
