Update AI.js

Duh, I was resetting that variable every time