js sdk for search