Create communications.js

Copied from https://www.webrtc-experiment.com/data-connection.js