Don't make args to splice() infinitely long

Because some browsers have a max for this.