UI-3161 fix error javascript for jqchat