fixing site search js errors