fixed service.js