disables spi and fixes one fundamental bug in grid.js

disabled spi and fixed one bug in grid.js