typo in javascript