fixed typo in JS