Javascript rock/paper/scissors game played against a computer