Adding jasmine testing. 

Also replacing underscore for lodash.