Changed firstDocument to html