Fighting with Karma and PhantomJS