Similar Words Game in JS