Set Css Class Javascript Constructor Object Oriented Programming