Rock paper scissors for javascript