Sample sudoku solver for Javascript