Im trying to package saxon-js, in their js code they do
var content = SaxonJS.getPlatform().readResource("lib/xpath/XPathJS.min.js");