refactored webrtc.service.js