fix uncaught errors in some browsers, configurable default uncaught error level as warning instead of error, wrap addEventListener to report uncaught errors @coryvirok