Add doctype to template file