<div id="names"> </div>
var array = ;
This script basically creates a <div> where all the Names will be display, and also created an array where all the names will be stored.
Second, add a new HTML Block and use this code:
This script will store the Name values in to the array that you just created.
And lastly, Add this code into your footer:
var name_from_table= '';
name_from_table += name + "<br/>";
document.getElementById("names").innerHTML = "<p>" + name_from_table + "</p>"
This code will now get all the values from the array that you created, and it will display the values in to the <div> that you've created in the header section.
I hope this works in your workflow.