Fixes a number of javascript issues with Plone 4.3