JS unit testing with karma and jasmine