JavaScript class inheritance.