Fixed javascript error with jQuery >= 1.7 (Plone 4.3 default)