AngularJS directive to draw vis.js graph