Fail build when there were JavaScript errors on the page.
Call rake's fail method with message, rather than exiting process.