Update drawgrid.js