Place this alert instead:
--
Paul T.
alert(typeof childColumns);
Object is ok. But at that point in the code, it better be an array or else you get the error you are seeing.
Also, what version of Sharepoint are you on?
--
Paul T.
-- Sent from Mobile