Update services.js

Change factory to use web api