Creating jqPlot graph update from data