Remove script from file