Dynamically Change Css Class Javascript Constructor W3schools