window.onload replaced document.onload