Toy javascript sudoku solver