Graphs controller widget in backbone.js