Install karma as a pre-script activity

Turns out you can't specify two languages on Travis, but fortunately
node is always available.