fix javascript typo