Classical inheritance in javascript