Spiral Matrix using JS and Jasmine