Clone html dom with form values