Moved matrix calculation code into the maxtix view
Added jasmine test infrastructure along with some initial tests