Update ai.coffee