Update application.js

Support AI