Replaced document.ready with window.load