when webpage opens graph is initialized with contents of json-file