update service.js file