Add grid.add function to canvas.js