Javascript library for multi-dimensional arrays