       resultItemClass: 'autocomplete__result',
       resultLinkClass: 'autocomplete__result__link',
       resultItemHoveredClass: 'autocomplete__current',
-      activeClass: 'autocomplete__active'
+      activeClass: 'autocomplete__active',
+      throttle: 200
       map:
         title: 'title',
         type: 'type',


    _searchFor: (searchTerm) ->
      if searchTerm?.length >= @config.threshold
        @_makeRequest searchTerm
      else if @results.displayed
        @_removeResults()

    _makeRequest: (searchTerm) ->
      myRequest = new XMLHttpRequest()
      myRequest.addEventListener 'readystatechange', =>
        if myRequest.readyState == 4
          if myRequest.status == 200
            @_populateResults JSON.parse(myRequest.responseText), searchTerm

      myRequest.open 'get', @_generateURI(searchTerm, @config.scope)
      myRequest.setRequestHeader 'Accept', '*/*'
      myRequest.send()

    _generateURI: (searchTerm, scope) ->
      uri = "#{@config.uri}#{searchTerm}"


      @el.addEventListener 'keypress', (e) =>
        @_keypressHandler e

    _setupXHR: ->
      xhr = new XMLHttpRequest()
      xhr.addEventListener 'readystatechange', =>
        if @xhr.readyState == 4
          if @xhr.status == 200
            @_populateResults JSON.parse(@xhr.responseText), @currentSearch
      xhr

    _buildResults: ->
      results = document.createElement 'UL'
