Html Define Css Class Inheritance Javascript