javascript file to display search results