Fixed javascript issue for J3.3