Tested and worked for me. The line you're looking for is:

doc.getElementsByClassName("ct-searchButton hp-searchButton").Item(0).form.submit
Edit: You may want to look here, they have an API.