Fix typo in js