JavaScript class implementation with constructor and multi-inheritance support.