Fixed a typo in JS.