API JavaScript Change for Request Mapping