Fix reserved keyword issue

`class` is a reserved keyword. Noticed it when trying to compile with Google's closure compiler.

https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Reserved_Words
Merge pull request #2 from marksteve/patch-1

Fix reserved keyword issue