CHAT-19 CHAT-20 reconfig javascript for chat portlet