Typo fixes in JS docs