Removed setattribute to use object properties (simulating set attribute with class->className and for-htmlFor)