fixed JS "typo"