fixed typo in js