JavaScript file to process search results.