Add support for define doctype and charset in options