Fixing for footer script template not loading