move renderResults function to its own file called post_search_handler.js