integrating with angularjs