Java And Multiple Inheritance In Javascript