Rock paper scissors javascript code