tictactoe in javascript