A minesweeper game in JavaScript