Update ai.js

cleared comments