Hm... Maybe you should stick with the same approach as before: concatenating the string and appending the whole thing at once. If you don't want to leave the array approach, a .join() and .html() would do the same.