fix typo in JS docs