Render relational graphs in JavaScript