AngularJS using Factory.