I have implemented my first program in JavaScript, Rock-Paper-Scissors. I would like JavaScript developers to help me make this program more JavaScript-like by following the idioms of the language. I am also open to any suggestions related to simplification of logic and code readability.The following is the complete listing of the program:<html><head></head><body>    <script>        var choiceArray = [paper, rock, scissors];        var getUserChoice = function()        {            var userChoice = undefined;            var userChoiceIndex = undefined;            while (true)            {                userChoice = prompt(What do you like - paper, scissor or rock);                userChoiceIndex = choiceArray.indexOf(userChoice);                if (userChoiceIndex >= 0 && userChoiceIndex <= 2)                    return userChoice;                alert(Invalid Choice!);            }        }        var getComputerChoice = function()        {            var computerChoiceIndex = Math.floor(Math.random() * 3);            return choiceArray[computerChoiceIndex];        }        var decideWinner = function(userChoice, computerChoice)        {            if (userChoice === computerChoice)                return There is a tie!;            if (userChoice === paper)            {                if (computerChoice === rock)                {                    return paper wins!;                }                else //scissors                {                    return scissors win!;                }            }            if (userChoice === rock)            {                if (computerChoice === paper)                {                    return paper wins!;                }                else //scissors                {                    return rock wins!;                }            }            else //scissors            {                if (computerChoice === paper)                {                    return scissors wins!;                }                else //rock                {                    return rock wins!;                }            }        }        var runGame = function()        {            var userChoice = getUserChoice();            var computerChoice = getComputerChoice();            var gameResult = decideWinner(userChoice, computerChoice);            gameResult = Computer Choice =  + computerChoice + .  + gameResult;            alert(gameResult);        }        runGame();    </script></body></html>
How do I make my Rock-Paper-Scissor program more JavaScript-like?
javascript;game;rock paper scissors