fixing js typo