chore(script): remove JSON and XML functions from script environments

- overrides the JSON functions in Javascript
- for consistency, we remove both functions from all environments
- S functions can be used with equal functionality

related to CAM-3067