Fix footer scripts