Minor JS changes