Rock-Paper-Scissors game written JavaScript