Changing window.load to document.ready