game of life exercise implemented using javascript with tests using jasmine.