Thanks. We're a government installation, so are at MOSS with IE7--no debugging possible. I'll first try the async: false trick, then try the code on an SP2010 machine and IE9 (not used in-house but would help understand whether the problem is IE).
The "stack overflow..." message is an information dialog that is system-generated. Appears after the writes to the list, so far as I can tell.