fix typo in client-side js