PeerJS refactor and A/V