Update grid-ai.js