Add Javascript to tic-tac-toe