         if direction is 'down'
           unless @results.highlighted.nextSibling == null
             @_removeClass(@results.highlighted, @config.resultItemHoveredClass) if @results.highlighted
-            @results.highlighted = @results.highlighted.nextSibling 
+            @results.highlighted = @results.highlighted.nextSibling
       @_highlightCurrent()
 
     _highlightCurrent: ->

      if highlighted.tagName == 'A'
        # it's a link, change the href
        @_navigateTo highlighted.href
      else 
        @_selectCurrent()

    _handleCancel: ->

        anchor = document.createElement 'A'
        anchor.href = item[@config.map.uri]
        anchor.className = @config.resultLinkClass
        iconClass = item['icon']
        iconClass || iconClass = if item[@config.map.type] == "place" then "icon--place--pin--before" else "icon--#{item[@config.map.type]}--before"
        anchor.className += " autocomplete__result__typed #{iconClass} icon--white--before" if @config.map.type
        anchor.innerHTML = highlightedText
        listItem.appendChild anchor
      else
