Build a program to recursively traverse the DOM and create a word cloud of most common attributes and elements to create a tag cloud.