Added additional event handler for dealing with the onload event not fir...

Added additional event handler for dealing with the onload event not firing for some browsers