updating to include footer as well
javascript clean up