write a asynchronous error handler in supportInBrowsers.js