renamed services.js to factory.js