Allow Jasmine to stub Date object saving the original object in a closure.