BitTorrent client in Javascript