You say that the script isn't working. But why? What is it doing?
I notice that google suggest is now part google search and also there is google custom search
Did your browser try to redirect you to a google page that no longer exists? Because if it did, then the ajax worked fine. Did you get an error? What did it say?