A JavaScript module to arrange the nodes of a directed graph, diagram or network in 2D