This can be rewritten using `then`:
    lookupAutoComplete = (terms) ->
      data = JSON. ...
      url = ...
      options = ...
      options.async = ...
      options.data = ...

      jQuery.ajax(options).then (data) ->
        results = data.d or []

End - no more is needed. The `then` call returns a new promise that has the behavior you'd expect.