JR - Minesweeper - Conversion to jQuery plugin