text: var jQuery = require('jquery');
  //require('jquery.easing');
  require("popper.js");
  require("bootstrap");
  window.$ = window.jQuery = jQuery;
  
  var config = require('../../../config/config.json');
  
  $(document).ready(function () {
  
      //create terms of service and privacy policy links
      $('#toslink').attr('href', config.other.tosUrl);
      $('#privacypolicylink').attr('href', config.other.privacyPolicyUrl);
      $('#helplink').attr('href', config.other.helpPageUrl);
  
      // Smooth scrolling using jQuery easing - see template in readme credits for more info
      /*
      $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function () {
          if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
              var target = $(this.hash);
              target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
              if (target.length) {
                  $('html, body').animate({
                      scrollTop: (target.offset().top - 48)
                  }, 1000, "easeInOutExpo");
                  return false;
              }
          }
      });
      */
  
      // Closes responsive menu when a scroll trigger link is clicked
      $('.js-scroll-trigger').click(function () {
          $('.navbar-collapse').collapse('hide');
      });
  
      // Activate scrollspy to add active class to navbar items on scroll
      $('body').scrollspy({
          target: '#mainNav',
          offset: 54
      });
  
      // Collapse Navbar
      var navbarCollapse = function () {
          if ($("#mainNav").offset().top > 100) {
              $("#mainNav").addClass("navbar-shrink");
          } else {
              $("#mainNav").removeClass("navbar-shrink");
          }
      };
      // Collapse now if page is not at top
      navbarCollapse();
      // Collapse the navbar when page is scrolled
      $(window).scroll(navbarCollapse);
  
  });
  
  //optional use of viewjs:
  /*
  var Vue = require("vue/dist/vue.js");
  window.Vue = Vue;
  
  Vue.component("testcomponent",{
      template:'<p>I am Test Component</p>'
  });
  
  Vue.component('headercomponent', {
      template:'<p>I am HEADER Component</p>'
  });
  
  Vue.component('footercomponent', {
      template:'<p>I am FOOTER Component</p>'
  });
  
  var app = new Vue({
      el: '#header-footer'
  });
  */