JavaScript error causing a product search to return no result

JavaScript error causing a product search to return no result