EKG generator using D3