What electricity? The batteries are charged by the gas engine. Note that pollution from an electric plant would be less if you did charge your batteries from the grid, as large plants allow economies of scale in pollution reduction.
[We] use bad software and bad machines for the wrong things. -- R.W. Hamming