Made IE work with it's weird version of array.splice.