Added a slightly better AI for JS in TTT.