Replaced document load event by QUnit begin event