Clean all dead scripts from the header