Added options for specify doctype and charset