General approach for adding JavaScript configuration (and i18n data) to Plone products