hamming js