js sdk public http request