Fail tests when there are JavaScript errors on the page

In the current version of jasmine-phantom, it is possible to have a green build in spite of there being JavaScript errors on the page.

This patch causes the build to fail when there are such errors, and logs useful information surrounding each of the errors.

A minimal test case for these changes can be found at https://github.com/Sinjo/js-error-example