remove scripts from the index