Fixed a typo in javascript.