Javascript version of minesweeper