text: (function($){
    $(function(){
  
      // Initialize collapse button
      $('.button-collapse').sideNav();
  
      // Initialize collapsible (uncomment the line below if you use the dropdown variation)
      $('.collapsible').collapsible();
  
      var $container = $('#masonry-grid');
      // initialize
      $container.masonry({
        columnWidth: '.col',
        itemSelector: '.col',
      });
  
      $(document).ready(function(){
      // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
      $('.modal-trigger').leanModal();
    });
  
      $('.dropdown-button').dropdown({
        constrain_width: true, // Does not change width of dropdown to that of the activator
        hover: false, // Activate on hover
        gutter: 0, // Spacing from edge
        belowOrigin: true // Displays dropdown below the button
      }
    );
  
      $(document).ready(function(){
        $('.parallax').parallax();
      });
  	
  	  $('.scrollspy').scrollSpy();
  
  $(document).ready(function(){
      $('.toc-wrapper .row').pushpin({ top: $('.toc-wrapper').offset().top });
    });
  
  
   // Floating-Fixed table of contents
      if ($('nav').length) {
        $('.toc-wrapper').pushpin({ top: $('nav').height() });
      }
      else if ($('#index-banner').length) {
        $('.toc-wrapper').pushpin({ top: $('#index-banner').height() });
      }
      else {
        $('.toc-wrapper').pushpin({ top: 0 });
      }
    
    
    }); // end of document ready
  })(jQuery); // end of jQuery name space