add modeling of window.onload invocation