Fixing typo in JS