added jasmine async support