Add ES5 shim for the tests.
Add an async setTimeout so IE8 does not run out of stack space.