Javascript word-count exer done.