@codebeast It sounds like you should read up on OOP - this is fairly basic stuff for OOP, but it doesn't strictly exist in Javascript so it makes sense that it would be foreign.
Maybe this will help you:
http://phrogz.net/js/classes/OOPinJS2.html If not, try searching for "OOP inheritance" and "OOP inheritance constructors"