Update search.html

changed document to window in line 28