WL-2106 : Moved Js to here (from reference) to avoid server trip