Create rock paper scissors in javascript