fix grid.js