Added Portlets and supporting JavaScript code