Fix jQuery bugs in the top search box