A simple JavaScript implementation of the classic Minesweeper