Javascript Tic-Tac-Toe.