huffman data compression using javascript and python