Jasmine working with require