make sure we hook in before footer scripts are done