Update grid.js

* not running in chrome