First time using Javascript - reproducing the game Rock, Paper, Scissors