Update AI.js

DAMN YOU CASE SENSITIVITY!