make getHtml task async.