Creating request chain graph js