Added js for "back to search results" link

Updated the JS to go straight back to search results.