removal of javascript from portlets