fix for IE8 script onload work around