Update graph.js

changed to use keys instead of ids for querying