d3 for marble diagram, fixes for ide, code separation