Update sync-service.js