add console-log-viewer.js for debug builds
console-log-viewer included on #debug builds
a few minor tweaks and improvements