Moved footer script to the footer