update graph2.js to use live data