fix footer script bug on homepage