Upgrade karma

The tests now run from a fresh checkout without needing to install phantomjs
manauly.