Fix issues flagged by Closure Compiler.

Change JSDoc array types to use Closure Compiler style.
Wrap each file in (function(){})() to avoid errors over redefined variables.
Remove non-working renderHtmlError.
Add more checks in Closure Compiler Travis test.

cc @BooDoo for code review.
unterminated double-quote on last line