Pure Javascript Sudoku