fix typos in JavaScript section
Merge pull request #3 from cvan/patch-4

fix typos in JavaScript section