Numpy Remove Element From Array Javascript Splice And Slice