Interactive Tic-Tac-Toe game in HTML5/JavaScript

This game is a basic Tic-Tac-Toe game, the game checks for legal moves and balances turns between player and computer. The AI is designed to play in the following way, try to win in 1 move, prevent the player from winning in 1 move, take 1 of 5 key spots (center and corners), and finally pick random location. The human player will not stand a chance. Scoring on screen to indicate how much damage the AI has done. Good Luck!