edit js for typo