window.onload instead of <body onload>