code: function handleUpdate(item) {
              var q = item.val();
  
              if (q.length == 0) {
                  closeSearch();
                  window.location.href = window.location.href.replace(window.location.search, '');
              } else {
                  launchSearch(q);
              }
          }
docs: Launch query based on input content