fix js for searchautocompleter