typo fix in js