Fix typo in javascript

Fix misspelling.