word">return</span> item.name }
  },
  <span class="hljs-attr">autocompleteData</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">term, cb</span>) </span>{
    <span class="hljs-comment">// Remove duplicates and filter based on search term</span>
    cb(items.filter(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">item</span>) </span>{
      <span class="hljs-keyword">return</span> ti.items().indexOf(ite