Another attempt at writing rock, paper, scissors in javascript. Tested using Jasmine