Traditional inheritance in JavaScript