Extends Jasmine so waitsFor can wait for a callback to be called instead of always polling