Replacing Pistons with Batteries

How close are electric vehicles to rendering engines obsolete?