browser tic tac toe written in Jquery