Array.splice() fix for IE <= 8