Fix syntax error on android 2.3 and 2.2

Android javascript engine doesn't like objects with properties named
'class'.
Merge pull request #95 from bschoenfeld/android-fix

Fix syntax error on android 2.3 and 2.2. Closes #93.