An example in javascript inheritance making use of jQuery's extend function.