added extra logic to handle IE 6-8 onload script

Working on side project and I noticed that IE6-8 don't send event to onreadystatechange function. They update the `this` pointer. what I did was added extra logic to check that as well.