Update AI.js

Forgot something last time.