Javascript version of Sudoku Solver