$(document).ready(function() {
  var height = $("#page-header").height()
  $("a").click(function(e) {
      e.preventDefault();
      var href = $(this).attr("href");
       $('html, body').animate({
        scrollTop: $(href).offset().top - height
       }, 0);
  });
});

@@ -72,16 +72,25 @@
 )%0A  $(%22a
+.internal
 %22).click

Make the selector more restrictive