$(function() {
  $('a[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
        }, 1000);
        return false;
      }
    }
  });
});

@@ -457,12 +457,570 @@
 %7D%0A  %7D);%0A%7D);%0A
+%0Afunction revealOnScroll() %7B%0A    var scrolled = $window.scrollTop();%0A    $(%22.revealOnScroll:not(.animated)%22).each(function () %7B%0A      var $this     = $(this),%0A          offsetTop = $this.offset().top;%0A%0A      if (scrolled + win_height_padded %3E offsetTop) %7B%0A        if ($this.data('timeout')) %7B%0A          window.setTimeout(function()%7B%0A            $this.addClass('animated ' + $this.data('animation'));%0A          %7D, parseInt($this.data('timeout'),10));%0A        %7D else %7B%0A          $this.addClass('animated ' + $this.data('animation'));%0A        %7D%0A      %7D%0A    %7D);%0A

Update script.js