call requirejs error handler for uncaught exceptions

Signed-off-by: luka8088 <luka8088@owave.net>