The long version of my DrupalCon Prague session, for people who already had problems with core or contrib JS. Same upgrade path (drupalSettings, libraries, #attached), then the details: with declared dependencies we get a dependency graph and better aggregation, core JS follows strict mode and JSHint, and toolbar, contextual links and quick edit are built on Backbone.
I also cover what didn't change: no JS documentation on api.drupal.org, no JS tests, no performance measurements. And how quick edit ended up hiding and ajaxifying Drupal forms, when we expected it to use REST.