It is never reaching this line. Can you try it when onreadystatechange fires with opened state?