Changed .class to ['class'] for Safari 4
Merge pull request #1196 from AdmiralJota/518_class

Changed .class to ['class'] for Safari 4