Fixed onreadystatechange issue.