Add iframe onload handling to jsonp tests.

`onload` handling required for the `drain` event to fire. We need this
for some tests that look at socket closing.
Fixed.