I went back to Todd's SharePoint 2013 book and went to the chapter on Search. My problems turned out to be line breaks. The book does not clearly identify where the line breaks are. We have it now working. Of course, I took the time to build a search center. I am trying to figure out what I need to do on each site collection. There seems to be several good Search videos on SharePoint.
As for the script on this page, can't say why I could not get it to work.