Rock, Paper Scissors game in JavaScript