Implementation of custom js lib around webrtc api