fix typo in js