Minor JS fixes.