Rock Paper Scissors in JavaScript