Refactor jasmine execution.