Ruby Remove Value From Array Javascript Length Of An Array Can Store