Jasmine tests working in browser and in Karma