Added additional event handler for dealing with the onload event not firing for some browsers
Hardcoded the retry_delay
Added support for Date.now() for older browsers