Adjusting doctype option
Adjusting docType function so that doctype is added by default unless option is set to false