Fixed after_footer scripts