There is overwhelming evidence that this didn't happen in the Jurassic era: Stegosaurs had been extinct for tens of millions of years at that point.
The theropods ("possibly") electrocuted contemporary dinosaurs, not dinosaurs that had gone extinct 100 million years earlier.