Convert to PeerJS plugin