Update npm dependencies and karma.conf.js