cleanup on service.js