Add support for IE

Stupid IE8 doesn't do onload.
Fixed reference to e.target
Send the req to the callback.