WL-2106 : Js moved to portal to avoid server trip