changed .class to ['class']

fix this problem:
http://stackoverflow.com/questions/2870409/syntaxerror-parse-error-only-happens-in-safari