Bug in removeChildAt

Splice syntax:
array.splice(index , howMany[, element1[, ...[, elementN]]])