add javascript hamming assignment