Adds autocomplete widget using query API and jQuery UI.