Simple, bespoke class inheritance in JavaScript