Othello with JavaScript