javascript constructor reset: What is it?
This gives an explanation http://phrogz.net/JS/Classes/OOPinJS2.html
In particular
Cat.prototype = new Mammal(); // Here's where the inheritance occurs
Cat.prototype.constructor=Cat; // Otherwise instances of Cat would have a constructor of Mammal