Learn: Hamming Distance in Javascript