touched up docs and fixed minor formatting issue in JS