Update jsGraph