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

Resolves #518.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/398/

Browsers from 2009, rejoice!

I assume this one should get tested by blackshadowshade first.