Variable Array Javascript Length Of List