Rock Paper Scissors in javascript