Dynamic javascript generation for REST baseURL info.