Moved typeahead initialisation into separate file