Update service.js

update format