Small js fix for J6