Rack middleware to trap javascript errors and inject them in the DOM so capybara drivers without javascript error reporting can find them easily.