A JS only client sounds like a novel approach.. although I wonder why you require c++ guru's.. must be something not published yet.
The JavaScript client is only a client, it does not act as a node in the peer-to-peer network. The peer-to-peer network is implemented in C++.
I really need to shut up now though.
