based on Jasmine 1.3