Laying basis for saveHtml method