Sudoku solver html/javascript