Updated GraphWidget.js