Something is wrong with the i variable. I can`t figure out what is actually wrong.
for (var i = 0; i < anchors.length; i++) {
  $("." + anchors[i]).click(function() {
    $("body").animate({
      scrollTop: $("#" + anchors[i] + "Strip").offset().top // here an error
      // says that "top" is undefined
    }, 1000);
  });
}
 
    