Preserve HTML doctype

Fixes gh-6
Merge pull request #20 from Stuk/doctype

Preserve HTML doctype