add cross-browser onload method