initial jsgraph implementation