JSHINT cleanup of visualize.js

mostly fixes to reports of variable ‘is not defined’