Update grid.js

minor changes