Ensure run-jasmine example script always return exit code

`run-jasmine.js` wasn't return an exit code when jasmine runner is not properly loaded or when page can't be opened, therefore exit code was 0, signaling to travis-ci all tests passed.
This PR ensures an exit code is always returned.

Thanks,