Extend grid.js to 4 dimensions