Adding server side JavaScript resource through theme

I’m trying to add server side JavaScript library as a resource to XPages through theme. Although I’m able to add client side JS library by adding resource section to the theme like this:

application/x-javascript

MyClientSideLib.js

I’m not able to to the same for server side one. Guess that it is somehow conneted to library suffix (e.g. .jss) and MIME content type but I’m unable to figure out the solution.

Any help is highly appriciated.