Consolidated the document.ready statements