created rock paper scissors using javascript