bencoding (bittorrent) in javascript