perusing on the fly, the first thing I notice is the use of concat: it wants Array arguments: that is:
anArray.concat(anotherArray, anotherArray, anotherArray)
also, it requires you to assign the main array as the object which has to be transformed, for (strangely enough) concat doesn't appear as direxctly affecting the object but... returning a NEW one! So:
anArray=anArray.concat(anotherArray, anotherArray, anotherArray)
This also means strTRDATA must be an array, not a string, and also its arguments.
this may probably solve at least one of the potential issues