Fix the onreadystatechange event listener.