integrate with angularjs