Testing Flot integration with AngularJS