Fix typos in Javascript docs