Trying to build rock paper scissors in javascript