Prototypal vs Classical Inheritance in Javascript