Only show the panel for HTML documents.

Only show the panel for HTML documents.
Fix indentation to reduce number of JSLint errors.