fix typo in JS