added doctype declaration to HTML before saving