if(!['search', 'search_input', 'cancel_btn'].includes(target.className)) {
cancelSearch();
}
const allowedClasses = ['search', 'search_input', 'cancel_btn'];
if(![...target.classList].some(name => allowedClasses.includes(name))) {
cancelSearch();
}