Updated for Typeahead.js and Bootstrap 3 integration.