Add support for IE

Stupid IE8 doesn't do onload.