JavaScript inheritance implementation with super calls.