/**
 * cbpAnimatedHeader.js v1.0.0
 * http://www.codrops.com
 *
 * Licensed under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Copyright 2013, Codrops
 * http://www.codrops.com
 */
var cbpAnimatedHeader = (function() {

	var docElem = document.documentElement,
		header = document.querySelector( '.navbar-fixed-top' ),
		didScroll = false,
		changeHeaderOn = 300;

	function init() {
		window.addEventListener( 'scroll', function( event ) {
			if( !didScroll ) {
				didScroll = true;
				setTimeout( scrollPage, 250 );
			}
		}, false );
	}

	function scrollPage() {
		var sy = scrollY();
		if ( sy >= changeHeaderOn ) {
			classie.add( header, 'navbar-shrink' );
		}
		else {
			classie.remove( header, 'navbar-shrink' );
		}
		didScroll = false;
	}

	function scrollY() {
		return window.pageYOffset || docElem.scrollTop;
	}

	init();

})();
var cbpAnimatedHeader=function(){function e(){window.addEventListener("scroll",function(a){c||(c=!0,setTimeout(f,250))},!1)}function f(){var a=g();a>=d?classie.add(b,"navbar-shrink"):classie.remove(b,"navbar-shrink"),c=!1}function g(){return window.pageYOffset||a.scrollTop}var a=document.documentElement,b=document.querySelector(".navbar-fixed-top"),c=!1,d=300;e()}();

Update cbpAnimatedHeader.js