spelling error on javascript