The code I uploaded are 2 separate files – header.php and search.php. They are not merged together in their actual files (sorry this is my first post on wordpress.org)
I have restored the original files and it does not work. What you see is a mixture of javascript and html in the code for me to customize wordpress – that is the reason you are finding things other than wordpress code.
All of the pages work properly and as intended, but the search results page does not. It is the only page that does not work properly, and this is after an update.