Simple helper method to append items all at once into a DOM rather than one by one which is not good for performance