fix doctype was not first line of the HTML

According to http://www.w3.org/TR/html-markup/documents.html#conformant-documents
you can have whitespace before the doctype. So the status quo is ok. But since we can move it to the first line, let's do it.