Update doctype of preview template.