Update script.js

Uber-basic AI.