updated graph js