Autocomplete library resource and function