js: word-count: rename, camel case
js: hamming: reduce from the shorter

avoids the need to trim anything