added demo / code to typeahead