updated grid.js.