add basic autocomplete function based on jQuery UI