Shim for some ES5 methods