If you are not familiar with twitter bootstrap typeahead please take a look at http://twitter.github.com/bootstrap/javascript.html#typeahead
While I am using twitter bootstrap, I found it is difficult to add the custom entries.
1 .When we add a entry and clicking on Enter the typeahead is taking the first list item as the value of the test box.
I solved this by Editing the typeahead javascript source code, refer my code from
https://github.com/abhilashak/Ajax-Typeahead