IE8 reserved word "class"

Fixes #29
Merge pull request #30 from markcarver/issues/29

IE8 reserved word "class"