Hi Christoff,
I was able to import and adapt AJAXSLT to work as an XSJS library. However, AJAXSLT is not a complete implementation of the XSLT specification and will therefore not work for all transformations. For my purposes it was sufficient (I was using this approach for a POC) but for productive use it may most probably not.
As Sergio mentioned, you may find a more useful approach using node.js or any other external service that performs those transformations for you.
Regards
Johannes