Sudoku in Javascript