amended baseurl reference in js