For anyone else interested in this functionality, pease contact PTC Integrity Support to be associated with feature request RFC 997194/CS186914: Is it possible to make custom JavaScript functions available in the Integrity WebClient? .
You may also be interested in the broader feature RFC 131213/CS 86890: Use standard HTML and CSS for presentation templates and dashboards.
Regards,
Kael