improving append with document fragment