Inheritance using JS Class