wrap listeners into function
update typeahead reference in cdn call