fix typos in JavaScript section