Fixed some placing of code, and positioning of footer

Moved the script and footer inclusion outside of the div to the bottom of the body. Changed how the footer were placed