Rock, paper, lizard, Spock in JS