Multiple Inheritance Program Using Javascript Innerhtml Definition