rock paper scissors in Javascript