service.js updated