A rock paper scissors game in JavaScript