Scrabble Game in JavaScript