Customize Real User Monitoring with the JavaScript API for web applications