Script to autocomplete and update the DOM on autocomplete list item selection