Besides using built-in front-end functions - "standard", "html5", "session", and "messages", - you can define your custom frontCall modules and then use these user-defined front-end functions.
To define your custom frontCall module, you must follow these steps.
Step 3. Save this wrapped JavaScript code to a file - e.g., myCustomFrontCallModule.js.