Added uncaught exception event to app.js