Add initial code, extracted from webrtc.js