IE8 fix onload & onerror

fire onload when readyState == DONE