Added dynamic changing of names and classes via either (Recommended):
getElementById("TEST").setAttribute("name", "NEWNAME");
getElementById("TEST").setAttribute("class", "NEWCLASS");

OR:

getElementById("TEST").name = "NEWNAME"
getElementById("TEST").class = "NEWCLASS"