require.js: Global onError Test

If global onError function set up, favor using it even for require callback errors. More info.

Check console for messages