jsGraph update