Reformat Search Results with JS

Code for reformatting search results html on the front end