IE8 does not support iframe.onload; we need to use .attachEvent() instead