conditional footer scripts