Update javascript.md

Fix minor typo.
Merge pull request #1 from cfree3/master

Fix minor typo in JavaScript doc.