update grid.js