fixes js typo