fixed js typo