fix typo in javascript