Exception handling

JavaScript exceptions are shit, and handling them can be a real pain in the ass. I personally would recommend having some special error object that solves your problem better. It would be custom for your app, but the standard exceptions are shit.

If you want good logging based on them, I recommend not doing it yourself, but instead buying something like rollbar or sentry. They make it much better.

I'm also a fan of explicit error catching as close as possible.