Creating the Page Obj with the HTML code as a param