code: function () {
          var html = template();
  
          var div = document.createElement('div');
              div.innerHTML = html.trim();
  
          var searchBar = this.applySearcbarEvents(div.firstChild);
              searchBar = this.setDefaultSearchTerm(searchBar);
  
          return searchBar;
      }
docs: Parses the searchbar template into an HTML string.
  
  @returns {*}