Create dimensional data slices in Node.js