rock, paper, scissors game written from scratch in JavaScript