minesweeper in javascript