Update es5 shim to remove deprecation warning

[ci skip]