prepare peer.js to receive the protocol