Autocomplete widget using native JavaScript