move site wide functions to main.js and add a footer fix