Update javascript.rst

Fix typos in javascript.rst