Rock, paper, scissors in JS