chore(js): update api endpoint