integrate with Angular JS