Add default value to "class" attribute

Fixes some browsers getAttribute returning null when no "class" attribute is present