Moved loading js to the footer rather than the header