Fix typo in javascript