fix the jasmine headless testing problem