moved dom parsing into d3#datum