add angularjs and ajax function