Creating jquery UI widget, based on autocomplete