Add a second pass to find scripts in case the first pass happened before the DOM was complete. For IE (and others?) in addition to setting script onload also set onreadystatechange. Avoid calling init twice. Spruce up the docwrite functions.
Add a second pass to find scripts in case the first pass happened before the DOM was complete. For IE (and others?) in addition to setting script onload also set onreadystatechange. Avoid calling init twice. Spruce up the docwrite functions.

git-svn-id: 7993b2f4f2ba5a9905871efa6a7ec8644a9ab51f@4 7e81d56e-de49-d382-be3e-a0610cba2679

cosmin/ControlJS