Bitcharts JavaScript & AngularJS