Fixes for compliance with karma => 0.11

Hey there,

I fixed your plugin to work with the latest version of karma. 

This should resolve the issues on your project.