Fix loading footer after scripts