Only javascript tic tac toe