updated autocomplete script