fix bug in ie8

In ie8, function splice requires the second parameter, witch indicates the number of items to be removed.