Match game on JS