Refs #12509.  Tweak regexp to work with IE9.  Ensure initial document.write goes through script serializer code path.
Refs #12509.  Tweak regexp to work with IE9.  Ensure initial document.write goes through script serializer code path.

git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@24148 560b804f-0ae3-0310-86f3-f6aa0a117693

redaktor/deliteful