Adds typeahead functionality on the client.