Use document fragment for rendering multiple elements