Update grid-lib.js