HTML/Javascript implementation of Minesweeper