Google script concatenate array. Try this change to your script.