Javascript typo fixed