Polyfill array methods for older browsers