Added window.load event