Removing deprecated jQuery 1.8 code in typeahead