adding PeerJS code