VIVO-593: fixed java script issue