Fixes mocha tests in IE, with "out of stackspace" errors.