js sdk docs and api