title: How can I translate ES6 template tag in normal jquery or javascript?
body: <p>I used this code in a tabbed map (two maps in tabs). </p>
  
  <pre><code>$(document).ready(function() {
  
  
      $('#lefttab').click(function(e) {
             $(window).on("hashchange", function(){
          var hash = this.location.hash;
          var mytab = $(hash + "-tab");
      });
          $('.tabs .nav-item a').removeClass('active');
          $('.tabs .tab').removeClass('active');
          $(this).addClass('active');
          $('#tab1-tab').addClass('active');
      })
      $('#righttab').click(function(e) {
  
         $(window).on("hashchange", function(){
          var hash = this.location.hash;
          var mytab = $(hash + "-tab");
      }); 
          $('.tabs .nav-item a').removeClass('active');
          $('.tabs .tab').removeClass('active');
          $(this).addClass('active');
         $('#tab2-tab').addClass('active');
      })
  
      function onHashChange() {    
          var hash = window.location.hash;    
          if (hash) {
              // using ES6 template string syntax
              $(`[data-toggle="tab"][href="${hash}"]`).trigger('click');
          }
      }
      window.addEventListener('hashchange', onHashChange, false);
      onHashChange();
  
  });
  </code></pre>
  
  <p>My goal was to be able to open different tabs based on hash, from an external url.</p>
  
  <p>This part : (<a href="https://stackoverflow.com/questions/48518237/how-to-open-a-tab-from-external-link/48520606">found here</a>)</p>
  
  <pre><code>function onHashChange() {    
          var hash = window.location.hash;    
          if (hash) {
              // using ES6 template string syntax
              $(`[data-toggle="tab"][href="${hash}"]`).trigger('click');
          }
      }
      window.addEventListener('hashchange', onHashChange, false);
      onHashChange();
  </code></pre>
  
  <p>..is using ES6 and my map doen't work anymore on IE..</p>
  
  <p>can someone help me translate this in normal javascript to make it work in all browsers ?</p>