You can create custom JavaScript functions here by writing simple commonjs module. See the example.
Global configuration:

                
Local configuration: