integrate with AngularJS