Multidimensional typed arrays in JS