JavaScript Sudoku Solver