initial creation of grid.js