Javascript typo corrections.