JavaScript Sudoku-Solver