Updated Karma & Fixed the CI build

e2e and unit tests were broken - karma configuration for e2e and unit tests were outdated and broken. this puts it back in a working state (with CI working on cloudbees, again, I just needed to ensure that the right packages were installed via npm - which all took rather a lot of guesswork).