minor batch JS fixes