Layout doesn't change as ajax requests complete.

Today Apple invalidated 3 of the 5 fixes in this script. I have verified that at least 1 of them is obsolete. It is my hope that someday this entire script becomes obsolete.