finish first version of bootstrap-typeahead