changed window.load event to document.ready event for loading performance