This fork of the fork adds comparisons to string that have accents and prevent errors when the ajax is not complete yet.
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->