Js Remove Specific Index From Array To List