Add plone-intergration javascript file and minor fixes