Rearranged d3 display code to avoid a too monolithic code.
duo generated file ignored