Fix issues with IE: Add polyfill for array methods