update _service.js structure