created word distribution function and object, next is adding to DOM