Minesweeper written in JavaScript