title: Cannot read property 'top' of undefined error only on live server
body: <p>The function below works without errors on my local server but on a live server I get the 'Cannot read property 'top' of undefined' error and the link wont work at all. What is causing that? How can I fix it?</p>
  
  <pre><code>    &lt;a class="heroJumpLink" href="#homeStatement"&gt;&lt;/a&gt;
  
      &lt;section class="fullCopy homeStatement" id="homeStatement"&gt;&lt;/section&gt;
  
  
  
  
          $('.heroJumpLink').on('click',function (e) {
  
              e.preventDefault();
              var target = this.hash;
  
              $('html, body').stop().animate({
  
                  'scrollTop': $(target).offset().top -70 + 'px'
  
              }, 300, 'linear');
  
          }); 
  </code></pre>