A javascript implementation of the bittorrent protocol