Add default value to "class" attribute

Fixes some browsers getAttribute returning null when no "class" attribute is present
Merge pull request #16 from njoyard/patch-1

Add default value to "class" attribute