$(document).ready(function (){
  // smooth scrolling
  $(".smoothie").on('click', function(event) {
    var target = $(this.hash)
      , navOffset = $('#navbar').height()
	;

	event.preventDefault();

    return $('html, body')
		.animate(
			{ scrollTop: target.offset().top - navOffset },
			600,
			function() {
				return window.history.pushState(null, null, target.selector);
			}
		);
  });

  // Shuffle the mentor gallery
  var parent = document.getElementById("mentor-gallery");
  var divs = parent.children;
  var frag = document.createDocumentFragment();
  while (divs.length) {
  	      frag.appendChild(divs[Math.floor(Math.random() * divs.length)]);
  }
  parent.appendChild(frag);
});


$(document).ready(function (){
  // smooth scrolling
  $(".smoothie").on('click', function(event) {
    var target = $(this.hash)
      , navOffset = $('#navbar').height()
	;

	event.preventDefault();

    return $('html, body')
		.animate(
			{ scrollTop: target.offset().top - navOffset },
			600,
			function() {
				return window.history.pushState(null, null, target.selector);
			}
		);
  });

  // Shuffle the mentor gallery
  // see: http://stackoverflow.com/a/9641564/1968883
  var parent = document.getElementById("mentor-gallery");
  var divs = parent.children;
  var frag = document.createDocumentFragment();
  while (divs.length) {
  	      frag.appendChild(divs[Math.floor(Math.random() * divs.length)]);
  }
  parent.appendChild(frag);
});


Add attribution in code.