#680 - remove dependency on window.onload.  TODO: test in real IOS5 device