I've added a couple of lines to the original fork to stop the default behaviour when tabbing. For the proper source, please see the original gist.
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function