Update application-ai.js