fix Javascript typo