changed .class to ['class']

fix this problem:
http://stackoverflow.com/questions/2870409/syntaxerror-parse-error-only-happens-in-safari
Merge pull request #139 from timLoewel/patch-1

changed .class to ['class']