typo in javascript protocol