Fix a typo in javascript code