Inheritance.js Sample: Create New Object Definition
Open the "JavaScript" and "Console" panels for details.