text: window.$ = window.jQuery = require('jquery');
  require('jquery-ui');
  require('bootstrap');
  
  // initialize model page view
  $().ready( function() {
      hidePages();
      $('#model').show();
  
      $("#addElementModal").on("show.bs.modal", function() {
          $("#elementType").change();
          $("#modalneuronName").val("");
          $("#modalcellGroupName").val("");
          $("#modalcellGroupNum").val("");
      });
  });
  
  // initialize main navigation
  $().ready( function() {
      $('#mainNav a').click( function(e) {
          var target;
          $('#mainNav li').removeClass('active');
          $(this).parent().addClass('active');
          hidePages();
          target = $(this).attr('href');
          $(target).show();
          // Prevent scrolling past the navbar
          e.preventDefault();
      });
  });
  
  // function to hide all views
  function hidePages() {
      $('#model').hide();
      $('#simulation').hide();
      $('#reports').hide();
      $('#database').hide();
      $('#vbot').hide();
  }
  
  // Load the rest of the JS
  require('./json');
  require('./app.js');
  require('./model.services.js');
  require('./builder.controllers.js');
  require('./sim.controllers.js');
  require('./vbot/main.js');
  