Minor JS and documentation changes