add doctype to swiz object