Improve my d3js management to have two graph in the same time.