Classical inheritance in JavaScript