Propagated document.domain to dynamic IFRAME

Current implementation doesn't propagate the document.domain to the child IFRAME.
This causes the `Unsafe JavaScript attempt` error.




    Unsafe JavaScript attempt to access frame with URL 
    http://foo.bar.com/aaaa/1243/zzzzz from frame with URL http://foo.bar.com/aaaa/1243. 
    The frame requesting access set 'document.domain' to 'bar.com', but the frame being 
    accessed did not. Both must set 'document.domain' to the same value to allow access.