Fixed a few typos in JS REST doc