Several shims for ECMAScript 5 functions