added support for classic js inheritance