fix onload callback in Internet Explorer