Optimize AutoComplete.js