added collapsible tree to js graphic files
load d3 function by default graphic types