JS and CSS should be packaged alongside the XBL. See for example:
https://github.com/orbeon/orbeon-forms/tree/master/src/resources-packaged/xbl/orbeon/grid(We might move to create an `assets` directory there instead, but that doesn't change anything really.)
They are automatically aggregated and loaded by Orbeon when the XBL control is in use.
-Erik