Change Css Class Attribute With Javascript To See If Three