Angularjs Service implementation in progress