CMS-2195 Javascript testing via Karma. Added jasmine & phantomjs.