Javascript lightweight N-dimensional database