simplify autocomplete js