Added karma-phantom and fixes for Travis