Fix syntax error on android 2.3 and 2.2

Android javascript engine doesn't like objects with properties named
'class'.