typo in js