JavaScript sudoku solver using backtracking algorith