javascript typeahead form utility