Adding a config option to set an onError function

I've made a small modification, enabling the config object to carry a custom error handler, equivalent to setting `requirejs.onError` after RequireJS has been initialized. This way, when using the global configuration variable, there is no need to then, after including RequireJS, also set an error handler. It can all be done in one place.