Updated graphwidget.js