Ensure phantom does not exit before jasmine finishes

Upgrade jasmine