pass autocomplete params to js call