seperated autocomplete.js from example