Move processing of schedule to grid.js