Fixed a JavaScript typo