I'd vote for this approach for attaching your onload-handler:

```JavaScript
if (window.addEventListener) { // W3C
  window.addEventListener('load', execJasmine, false);
} else if (window.attachEvent) { // MSIE
  window.attachEvent('onload', execJasmine);
}
```