Update footer.html

move scripts to head, to avoid FOUC with masonry