Simple Rock Paper Scissors game in javascript