first pass: uncaught and caught errors, uglify, source maps