title: typeahead.js get selected datum
body: <p>I'm trying to use Twitter <a href="https://github.com/twitter/typeahead.js">typeahead.js</a> to return a datum after selection. From what I understood by the documentation the code should look something like</p>
  
  <pre><code>$('.selector').typeahead({
    name: 'identifier',
    local: localObjectsArray
  }).on('autocompleted', function(item){
      alert(JSON.stringify(item));
  });
  </code></pre>
  
  <p>However this doesn't work. What's the proper way to detect typeahead events?</p>