Fixed JSHint warnings, pruned commented-out code.

Ran JSHint on dynamic_wordclouds.js with the flag 'undef:true', which
prohibits the use of explicitly undeclared variables.  Added variable
declarations where appropriate.