fixes javascript error with jQuery >= 1.7 (plone 4.3 default)