building js sdk after set location changes