typo in JS