Fixed typo in Javascript