JXA - Classes, Subclasses / Libraries, Sub-Libraries. Is it possible?

I'm just a JavaScript novice myself, but you might find this blog interesting and helpful:
A Touch of Class: Inheritance in JavaScript