javascript p2p network simulator