Update grid.js

updated inc variable to a parameter passed when drawGrid() is called.