title: import and export a jquery function
body: <p>I have a custom.js file with jquery code :</p>
  
  <pre><code>$('.nav.navbar-nav &gt; li').on('click', function(e) {
  $('.nav.navbar-nav &gt; li').removeClass('active');
  $(this).addClass('active');
  });
  </code></pre>
  
  <p>I want to export this code to the main.js file.Both files are in the same folder.</p>
  
  <p>Went through the <a href="https://developer.mozilla.org/en/docs/web/javascript/reference/statements/export" rel="nofollow noreferrer">documentation</a> but couldn't understand how to do it with jquery.</p>