updated js for rock paper scissors