Only show validation panel for HTML documents

Only show the panel for HTML documents.
Fix indentation to reduce number of JSLint errors.
Merge pull request #2 from alfredxing/master

Only show the panel for HTML documents.