Update grid.js

Version 3.1.1