Migration to standalone version of typeahead (not finished)