  var menuContainer = $('header').height();  function scrollToAnchor(anchorName) {   var aTag = $("div[name='" + anchorName + "']");   $('html,body').animate({     scrollTop: aTag.offset().top - menuContainer   }, 'slow');   console.log(anchorName); }  