Updating the foot JS to enable closing search results