cleanup footer script