Brief diversion, starting to clean up the searchresults js.