Refactored the searchresults js to use the module pattern!
Slight reorganization of the searchresults.js.