Fixed class attributes.

Class attribute was added twice as both "class" and "classname".
Swapped this to respect any existing classes, and to use className
instead.