refs #5588; fixes js error