Added ES5 shim for unit tests on old browsers.