Fix use of Array.splice with IE8
Merge pull request #40 from ohardy/master

Fix use of Array.splice with IE8