UPDATES TO app.js for jqplot