Bittorrent client in javascript