JavaScript inheritance implementation with super methods.