Crossword maker with javascript