small tweaks to forked typeahead lib