JavaScript 2D array length