tic tac toe in javascript (silliness!)