Added hacky capture of doctype to close #23