tic tac toe in javascript