fix to work with jasmine 2.0

Fix for jasmine 2.0