update angular service from factory to provider