Commonjs adapter.js browser compatibility shim for webRTC