Small JS utility for defining classes, performing inheritance and implementing interfaces.