Fixed typo in javascript