Moving hiding of search results into the document.ready function to ensure it fires once #results div is on page.