High cost and a limited range have been discouraging factors for people interested in purchasing an electric vehicle. But that’s changing quickly.