No, it should be

getSearchResults: (query, callback) ->
  $.getJSON "#{basepath}/search/#{query}?format=json&callback=?", callback

`callback` is a reference to a function. That function will be called with data as its first argument. You were adding an extra anonymous function to pass that data into callback, when it isn't necessary.