Add hamming distance to main.js exports