Changing my approach to use peerjs