Directed graph renderer for javascript