web-based single-user tic tac toe in javascript