Rudimentary JavaScript Sudoku Generator