assList.remove("u-hide");
    } else {
      jobContainer.classList.add("u-hide");
    }
  }

  function showAutoComplete(searchTerm, vacancies) {
    hideSearchResult(searchTerm)
    const ul = document.querySelector(".p-search-panel-list");
    const jobContainer = document.querySelector(".p-search-panel");
    let jobs = searchTerm ? fuse.search(searchTerm).map( a => a.item ) : [];
    ul.innerHTML = ''
    
    if (jobs.length === 0 && !jobContainer.classList.contains("u-hide")){
      jobContainer.clas