A port of my TicTacoToe project in JS