Ah yes, the cascade of `})`s. This is a smell! Consider leveraging the fact that jQuery Ajax calls are [Promises](https://github.com/kriskowal/q) and flattening out your calls and possibly moving some of the logic to other systems.