fix onload for IE9 and 10