JavaScript Scrabble game