Replace Array With New Array Js Slice String